import {getGoodsCommentList} from '@/api/goods'

import {ref,onMounted} from 'vue'

export default function(goodsId){
	
	const commentList = ref([]);
	
	onMounted(()=>{
		
		getGoodsCommentList({
			"_id": goodsId
		}).then(res=>{
			
			console.log(res)
			
			commentList.value = res.rows;
			
		})
		
	})
	
	return {
		commentList
		
	}
}